//
//  EtHandler.h
//  events
//
//  Created by movin on 2019/5/26.
//

#import <Foundation/Foundation.h>
#import "EtBaseEvent.h"

@interface EtHandler : NSObject
-(instancetype)initWith:(NSObject*)listener selector:(SEL)selector;
-(instancetype)initWith:(NSObject*)listener selector:(SEL)selector async:(bool)async;

-(void)invoke:(EtBaseEvent*)evt;

-(bool)same:(EtHandler*)handler;
-(bool)has:(NSObject*)listener;

-(bool)isNull;
@end
